{% extends "base.html" %}
{% load i18n %}
{% block title %}
{% trans "Edit user" %}
{% endblock %}
{% block content %}
    <h2>{% trans "Edit user account" %}</h2>
    <form action="/action/edit_user/" method="post">
    <span class='user_edit_title'>Контакты:</span><br />
    <span class='input_title'>{% trans 'E-mail' %} &ndash; </span> {{ form.mail }}<br />
    <label>{% trans 'Show mail' %} {{ form.show_mail }}</label><br />
    <span class='input_title'>{% trans 'ICQ' %} &ndash; </span> {{ form.icq }}<br />
    <span class='input_title'>{% trans 'Jabber' %} &ndash; </span> {{ form.jabber }}<br />
    <span class='input_title'>{% trans 'Site' %} &ndash; </span> {{ form.site }}<br />
    <span class='input_title'>{% trans 'City' %} &ndash; </span> {{ form.city }}<br />
    <span class='user_edit_title'>Уведомления:</span><br />
    <label><span class='input_title'>{% trans 'Notify post reply' %} &ndash; </span> {{ form.notify_post_reply }}</label><br />
    <label><span class='input_title'>{% trans 'Notify comment reply' %} &ndash; </span> {{ form.notify_comment_reply }}</label><br />
    <label><span class='input_title'>{% trans 'Notify pm' %} &ndash; </span> {{ form.notify_pm }}</label><br />
    <label><span class='input_title'>{% trans 'Notify mention' %} &ndash; </span> {{ form.notify_mention }}</label><br />
    <label><span class='input_title'>{% trans 'Notify spy' %} &ndash; </span> {{ form.notify_spy }}</label><br />
    <span class='user_edit_title'>Дополнительная информация:</span><br />
    <span class='input_title'>{% trans 'Timezone' %}:</span>{{ form.timezone }}<br />
    <span class='input_title'>{% trans 'About you:' %}</span><br />
    {{ form.about }}<br />
        <span class='user_edit_title'>{% trans "Your accounts on other web sites:" %}</span>
        <div id='meon_area'>
            {% if profile.get_me_on %}
                {% for meon in profile.get_me_on %}
                    <p id="meonp_{{ meon.num }}"><input class='meon' type="text" name="meon[{{ meon.num }}]"
                                                        value="{{ meon.title }}"/><input class='meon_url' type="text"
                                                                                         name="meon_url[{{ meon.num }}]"
                                                                                         value="{{ meon.url }}"/><input
                            type='checkbox' name="meon_status[{{ meon.num }}]"
                            {% if meon.statused %}
                            {% if meon.show %}
                            checked="checked"
                            {% endif %}
                            {% else %}
                            style='display: none'
                            {% endif %}/>
                        <a href="#" id="{{ meon.num }}" class="rm_meon"><img src='/media/style/cancel.png' alt='X' /></a>
                    </p>
                {% endfor %}
                <input type='hidden' name='count' id="meon_count" value='{{  profile.get_me_on|length }}'/>
            {% else %}
                <input type='hidden' name='count' id="meon_count" value='0'/>
            {% endif %}
        </div>
        <input type="button" id="add" value="{% trans 'Add' %}"/><input type="button" id="rm" value="{% trans 'Remove' %}"/><br/><br/><br/>
        <input type="submit" value="{% trans 'Save' %}">
    </form>
{% endblock %}
